﻿using CuoiHoi.Business;
using CuoiHoi.Entities;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Routing;


namespace CuoiHoi.UserControls
{
    public partial class DanhMuc : System.Web.UI.UserControl
    {
        public DataTable TbTinTuc;
        public static int idDanhMuc = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.RouteData.Values["IdDanhMuc"] != null)
                TbTinTuc = BTinTuc.SelectByIdTheLoai(int.Parse(Page.RouteData.Values["IdDanhMuc"].ToString()));
            else
                if (idDanhMuc > 0)
                    TbTinTuc = BTinTuc.SelectByIdTheLoai(idDanhMuc);
        }
    }
}